package com.ruoyi.system.service;

import com.dtflys.forest.annotation.*;
import com.ruoyi.system.domain.Forest.second.BaseResult;
import com.ruoyi.system.domain.Forest.second.TokenResult;

@BaseRequest(
        baseURL = "${secondDomain}"     // 默认域名
)
public interface SecondQueryTokenClient {

//    @Request(
//            url = "/v1/auth/login",
//            type = "post",
//            data = "{\"name\": \"user_tjpldkj\", \"password\": \"ABC_123@456\"}",
//            headers = {"Content-Type: application/json"}
//    )
        //            data = "{\"name\": \"${secondName}\", \"password\": \"${password}\"}",
    @PostRequest( url = "/v1/auth/login" )
    BaseResult<TokenResult> authToken(@JSONBody("name") String username, @JSONBody("password") String password);
}
